package cn.edu.tjnu.orm;

import java.util.Set;

public class DeptBean {
	/**
	 * primary key department id
	 */
	private Integer deptId;
	/**
	 * department name
	 */
	private String deptName;
	/**
	 * department code
	 */
	private String deptCode;

	/**
	 * hibernate：1-N的映射关系
	 * 需要在1端，维护一个多端的集合映射，1端集合中存储了多端的映射多个实例变量对象
	 */
	private Set<EmpBean> setEmps;
	
	public Integer getDeptId() {
		return deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}

	public Set<EmpBean> getSetEmps() {
		return setEmps;
	}

	public void setSetEmps(Set<EmpBean> setEmps) {
		this.setEmps = setEmps;
	}

}
